from django.urls import path, re_path
from course.views import *
# from rest_framework.routers import DefaultRouter
#
# router = DefaultRouter()
# router.register('tag', TagModelViewSet)
# router.register('course', CourseModelViewSet)
# router.register('chapter', ChapterModelViewSet)
# router.register('section', SectionModelViewSet)
# router.register('follow', FollowModelViewSet)

urlpatterns = [
    path('change_follow/', ChangeFollowAPIView.as_view()),
    path('user_course_section/', UserCourseSectionAPIView.as_view()),
    path('search/', CourseSearchAPIView.as_view()),
    path('send_comment/', CommentAPIView.as_view()),
    re_path(r'^media/video/(?P<filename>.*)$', MediaView)
]
# urlpatterns += router.urls